package com.yonyou.pmclouds.repairlog.mapper;

import com.yonyou.pmclouds.basecom.cache.RedisCache;
import com.yonyou.pmclouds.basecom.dao.BaseMapper;
import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.repairlog.entity.RepairLogVO;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
@CacheNamespace(implementation = RedisCache.class)
public interface RepairLogMapper extends BaseMapper<RepairLogVO>{
    @Select("select * from pm_repairlog where dr = 0 and pk_problemlog = #{pk_problemlog} order by repair_time")
    @ResultMap("getMap")
    RepairLogVO[] queryByPkproblemlog(String pk_problemlog) throws BusinessException;
}
